package com.bdqn.Service.ContractApply;

import com.bdqn.entity.ContractApply;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractApplyService {
    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @param apply
     * @return
     */
    List<ContractApply> findAllByPage(int pageNum,int pageSize,ContractApply apply);

    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @param apply
     * @return
     */
    List<ContractApply> findAllByPage2(int pageNum,int pageSize,ContractApply apply);

    /**
     * 查询总记录
     * @return
     */
    int getCount();

    /**
     * 根据id查合同申请
     * @param contractApply
     * @return
     */
    ContractApply findById(@Param("apply") ContractApply contractApply);

    boolean insert(ContractApply contractApply);

    int SelMaxId();

    /**
     * 根据编号修改状态
     * @param apply
     * @return
     */
    boolean updateStatus(ContractApply apply);

    /**
     * 根据i合同申请d查询合同申请
     * @param apply
     * @return
     */
    ContractApply findConAppById(ContractApply apply);

    boolean Del(int id);
}
